
import { Navigate } from "react-router-dom";
const AuthRouter = ({ children })=>{
    const accessToken = localStorage.getItem('accessToken')
    return(
        <div>
            {
                accessToken ? children : <Navigate to='/loginCode'/>
            }
        </div>
    )
}   
export default AuthRouter
